package cn.gson.crm.model.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import lombok.Data;
/**
 * 财务：收款记录表
 * @author john
 *
 */
@Data
@Entity
@Table(name="tb_cw_payrecord")
public class Payrecord {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="tb_pay_record_id")
	private Long id;
	
	//总金额
	@Column(name="all_money")
	private Double allMoney;
	
	// 优惠金额
	@Column(name="discount_money")
	private Double discountMoney;
	
	//应交
	private Double yingJiao;
	 
	//实交
	private Double shiJiao;
	
	//欠交
	private  Double qianJiao;
	
	//优惠原因
	@Column(name="discount_reason")
	private String discountReason;
	
	//身份
	private String identity;
	 
	//是否完成
	private String finish;
	
	//是否删除
	private Boolean deleted;
	
	private String date;
	
	//关联学员表,一对一
	@OneToOne
	@JoinColumn(name="student_id")
	private Student student;
	

	//多对一：学费信息与班级
	@ManyToOne
	@JoinColumn(name="class_id")
	private Classes classes;
	
	
	
	
	
}
